
/**
 * @api {get} /goods 获取所有商品信息
 * @apiName findGoodsList
 * @apiGroup goods
 * 
 * @apiHeader {String} authorization auth_token
 * 
 * @apiParam {String} [goods_name] 商品名【模糊匹配】(可选).
 * @apiParam {String} [cat_one_id] 商品一级分类【模糊匹配】(可选).
 * @apiParam {Number} [pagesize=10] 每页条数【默认10】(可选).
 * @apiParam {Number} [page=1] 页码【默认1】(可选).
 * 
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */

/**
 * @api {get} /goods/:id 根据id获取商品信息
 * @apiName findById
 * @apiGroup goods
 * 
 * @apiParam {Number} id 商品ID.
 * 
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */

/**
 * @api {get} /goods/category 获取商品一级分类
 * @apiName findGoodsCategoryList
 * @apiGroup goods
 * 
 * @apiParam {String} [goods_name] 商品名【模糊匹配】(可选).
 * @apiParam {String} [cat_one_id] 商品分类【模糊匹配】(可选).
 * @apiParam {Number} [pagesize=10] 每页条数【默认10】(可选).
 * @apiParam {Number} [page=1] 页码【默认1】(可选).
 * 
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */


/**
 * @api {put} /goods/:id 修改商品
 * @apiName update
 * @apiGroup goods
 * 
 * @apiHeader {String} authorization auth_token
 *
 * @apiParam {Number} id 商品ID(必填).
 * @apiParam {String} [goods_name] 商品名(可选).
 * @apiParam {Number} [goods_price] 价格(可选).
 * @apiParam {Number} [goods_number] 数量(可选).
 * @apiParam {Number} [goods_weight] 重量(可选).
 * @apiParam {Number} [delete_time] 上下架状态【默认0 0:下架,1:上架】(可选).
 * @apiParam {Number} [goods_state] 状态【默认0 0:未通过,1:已审核】(可选).
 * @apiParam {String} [goods_introduce] 商品详情介绍(可选).
 * 
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */


/**
 * @api {delete} /goods/:id 删除商品
 * @apiName delete
 * @apiGroup goods
 * 
 * @apiHeader {String} authorization auth_token
 *
 * @apiParam {Number} id 商品ID(必填).
 * 
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */